{template 'common/header'}
<div class="panel panel-default">
	<div class="table-responsive panel-body">
		<table class="table">
			<thead>
				<tr>
					<th style="width:50px">序号</th>
					<th style="width:150px">昵称</th>
                    <th>留言</th>
					<th style="width:200px; text-align:right;">操作</th>
				</tr>
			</thead>
			<tbody>
				{loop $list $item}
				<tr>
					<td>{$item['id']}</td>
					<td style="word-wrap: break-word;">{$item['nickname']}</td>
                    <td style="word-wrap: break-word!important;text-overflow: inherit;white-space: inherit;overflow: initial;">{$item['content']}</td>
					<td style="text-align:right; position:relative;">
                        <span {if $item['send']} class="label label-info" {else} class="label label-info" style="background-color: #666666;" {/if}>
                            {if $item['send']}已回复{else}未回复{/if}
                        </span>&nbsp&nbsp&nbsp
                        <a href="{php echo $this->createWebUrl('contactservice', array('reply' => 1,'id' => $item['id']))}" title="回复">回复</a>&nbsp;-&nbsp;
						<a onclick="return confirm('此操作不可恢复，确认吗？'); return false;" 
                        href="{php echo $this->createWebUrl('contactservice', array('delete' => 1,'id' => $item['id']))}" title="删除">删除</a>
					</td>
				</tr>
				{/loop}
			</tbody>
		</table>
	</div>
</div>
{$pager}
{template 'common/footer'}
